home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / hp-faq < prev    next >
Encoding:
Internet Message Format  |  1993-06-15  |  58.1 KB

  1. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!news.media.mit.edu!uhog.mit.edu!rutgers!gatech!swrinde!cs.utexas.edu!uunet!news.mentorg.com!dracula!gcagle
  2. From: gcagle@dracula.mentorg.com (Greg Cagle)
  3. Newsgroups: comp.sys.hp,news.answers,comp.answers
  4. Subject: comp.sys.hp FAQ
  5. Message-ID: <1993Jun15.183552.28357@news.mentorg.com>
  6. Date: 15 Jun 93 18:35:52 GMT
  7. Sender: news@news.mentorg.com (News User)
  8. Reply-To: greg_cagle@mentorg.com
  9. Followup-To: comp.sys.hp
  10. Organization: Mentor Graphics
  11. Lines: 1392
  12. Approved: news-answers-request@MIT.Edu
  13. Nntp-Posting-Host: dracula.mentorg.com
  14. Xref: senator-bedfellow.mit.edu comp.sys.hp:32878 news.answers:9437 comp.answers:1016
  15.  
  16. Archive-name: hp-faq
  17. Last-modified: 1993/6/15
  18. Version: 2.0
  19.  
  20. comp.sys.hp FAQ (Frequently Asked Questions)
  21. --------------------------------------------
  22. This article contains the answers to some Frequently Asked Questions (FAQ)
  23. often seen in the USENET newsgroup comp.sys.hp. Discussion in the
  24. newsgroup centers around Hewlett-Packard computer systems running 
  25. the HP-UX operating system (no MPE or other systems are covered here);
  26. the focus tends to be on the series 700 workstations. It is posted 
  27. monthly, on or about the 15th. 
  28.  
  29. Many FAQs, including this one, are available via FTP on the archive site
  30. rtfm.mit.edu in the directory pub/usenet/news.answers.  
  31. The name under which this FAQ is archived appears in the Archive-nameline 
  32. above (hp-faq).
  33.  
  34. Questions marked with a "+" are new to this issue, and questions with changes
  35. since the last issue are marked by a "!".
  36.  
  37. If you would like to make any submissions or corrections to the FAQ,
  38. contact Greg Cagle <greg_cagle@mentorg.com>.
  39.  
  40. Disclaimer:
  41. -----------
  42. The content of this article is the sole responsibility of the author and
  43. contributors, and does not necessarily represent their employers
  44. or Hewlett-Packard.
  45.  
  46. TABLE OF CONTENTS:
  47. ------------------
  48. Section 1: FINDING INFORMATION
  49.  
  50. 1.1)   Where can I get a copy of this FAQ file?
  51. 1.2)   Courses on HP-UX.
  52. 1.3)   INTEREX, The International Association of HP Computer Users.
  53. 1.4)   InterWorks, The International HP Workstation Users Group.
  54. 1.5)   INTEREX HP Users Conference 1993.
  55. 1.6)!  InterWorks Conference 1993.
  56. 1.7)   HP-UX publicly available software from InterWorks.
  57. 1.8)!  Anonymous FTP Sites for HP-UX, and UNIX related software.
  58. 1.9)   Where can I get a "Demo CD" with software for HP-UX?
  59. 1.10)!  HP-UX patch availability and mailing list.
  60. 1.11)   How can I send mail to an "hpdesk" address?
  61. 1.12)   What are the known issues with porting BSD based programs to HP-UX?
  62.  
  63. Section 2: THIRD PARTY VENDORS
  64.  
  65. 2.1)   Third party vendors for RAM.
  66. 2.2)+  Third party vendors for peripherals.
  67.  
  68. Section 3: UTILITIES
  69.  
  70. 3.1)   ASCII to Postscript converter.
  71. 3.2)   How do I make Perl on HP-UX?
  72. 3.3)   What is the status of the various gnu items on HP-UX?
  73.  
  74. Section 4: X WINDOW SYSTEM, OSF/MOTIF, AND HP-VUE
  75.  
  76. 4.1)   X11R4 Libraries (Athena, etc.) and utilities (imake, etc.).
  77. 4.2)   How can I display an image on the root window with HP-VUE?
  78. 4.3)   How do I get a scroll bar on hpterms?
  79. 4.4)!  How can I put a title in my hpterm titlebar?
  80. 4.5)   How come my hpterms keep going away by themselves?
  81. 4.6)   How come my HP X/Motif clients take a LONG time to display on a Sun?
  82. 4.7)   How can I get my login stuff to work under HP-VUE?
  83. 4.8)   How can I get console messages to an hpterm?
  84. 4.9)   What happened to the vuewm key accelerators at VUE 3.0?
  85. 4.10)  How come I can no longer disable the caps lock key with xmodmap?
  86. 4.11)  How come vi behaves strangely in xterms at 9.01?
  87. 4.12)  How do I disable HP-VUE?
  88. 4.13)  What's a good termcap entry for hpterm?
  89. 4.14)+ My screen is wedged. What should I do?
  90.  
  91. Section 5: OPERATING SYSTEM
  92.  
  93. 5.1)   Can I have filenames longer than 14 chars?
  94. 5.2)   How can I tell what filesets have been loaded on my system?
  95. 5.3)   How do I safely remove software from my system?
  96. 5.4)   What's the scoop on HP-UX 9.0/9.01?
  97. 5.5)   How come HP-UX doesn't support root NFS access?
  98. 5.6)   Can I get HP-UX to try DNS before NIS?
  99. 5.7)   How come the LOGnnnn files in /usr/adm keep growing and growing?
  100. 5.8)   How come I can't lock mail or other files on a Sun?
  101. 5.9)   What are the known issues with HP-UX 8.07?
  102. 5.10)  Why are mail files in /usr/mail are owned by daemon instead of the 
  103.        recipient?
  104. 5.11)  How can I tell if I need more than a 2-user license?
  105. 5.12)  How can I tell what patches are loaded in the kernel?
  106. 5.13)  How come I have to hit return after a control-d in the Korn shell? 
  107. 5.14)  How do I boot into single user mode?
  108. 5.15)  How come my Korn shell login hangs?
  109. 5.16)  How can I avoid those annoying copyright notices on login?
  110. 5.17)  How can I turn off quota checking?
  111. 5.18)  What are the issues with HP-UX 9.01?
  112. 5.19)+ Why does chown behave differently at 9.01?
  113. 5.20)+ How can I track log files and core files?
  114.  
  115. Section 6: COMPILERS AND LINKERS
  116.  
  117. 6.1)   What's a P-FIXUP error mean?
  118. 6.2)   Where is regcmp on HP-UX?
  119. 6.3)   How come the default C compiler is brain dead?
  120. 6.4)   How do I deal with "too many defines"?
  121. 6.5)   How come I get "_builtin_va_start" undefined when I build with gcc?
  122. 6.6)+  How can I tell if something was built debuggable?
  123.  
  124. Section 7: HARDWARE AND PERIPHERALS
  125.  
  126. 7.1)   Are alternate keyboards available for HP workstations?
  127. 7.2)   How can I play audio CDs on an HP workstation?
  128. 7.3)   How can I enable the LAN interface on a 700?
  129. 7.4)   How can I get an Exabyte to work on an HP?
  130. 7.5)   Is there a "node ID" on a 700?
  131. 7.6)   How can I get a stuck DDS tape out of the drive?
  132. 7.7)   How can I use dump with a DDS tape?
  133. 7.8)+  What is the correct major number for DDS drives on 9.01?
  134. --------------------------------------------------------------------------------
  135. Subject:  FINDING INFORMATION
  136. --------------------------------------------------------------------------------
  137. 1.1)   Where can I get a copy of this FAQ file?
  138.  
  139. The comp.sys.hp FAQ file is posted approximately monthly to the comp.sys.hp,
  140. news.answers, and comp.answers newsgroups. It is archived on rtfm.mit.edu
  141. in the pub/usenet directory, and also on the InterWorks archive machine 
  142. (see below), in the comp.hp directory.
  143. --------------------------------------------------------------------------------
  144. 1.2)  Courses on HP-UX.
  145.  
  146. Call the following numbers for information or the latest HP Education Catalog.
  147. U.S.:    1-800-HPCLASS {1-800-472-5277}
  148. Canada:  (416)678-9430
  149. --------------------------------------------------------------------------------
  150. 1.3)  INTEREX, The International Association of HP Computer Users.
  151.  
  152. INTEREX
  153. 585 Maude Court
  154. Sunnyvale, CA  94088-3839 USA
  155.  
  156. The focus here is on mainframes and non-workstation HP computers.
  157. --------------------------------------------------------------------------------
  158. 1.4)  InterWorks, The International HP Workstation Users Group.
  159.  
  160. InterWorks, formerly the Apollo Domain User's Society (ADUS), was formed to
  161. provide a users group specifically for HP _workstation_ users.The group publishes a quarterly
  162. newsletter, "The Works", holds an annual conference (see below), and maintains
  163. a library of HP-UX (and DOMAIN) software (see below).  Membership is free;
  164. please contact Carol Relph for more information:
  165.  
  166. Carol Relph
  167. Manager, Member Services
  168. InterWorks, Inc.
  169. c/o Hewlett-Packard Company
  170. Workstation Business Unit
  171. 300 Apollo Drive, Mailstop IWORKS
  172. Chelmsford, MA  01824-3623
  173. (508)256-6600
  174. E-Mail:  relph_c@apollo.hp.com
  175. --------------------------------------------------------------------------------
  176. 1.5)  INTEREX HP Users Conference 1993.
  177.  
  178. For more information, please contact the INTEREX Conference Department.
  179.  
  180. INTEREX Conference Department
  181. 585 Maude Court
  182. P.O. Box 3439
  183. Sunnyvale, CA 94088-3439, USA
  184. (800)INTEREX (U.S. & Canada only)
  185. (408)738-4848
  186. Telex:  4971527
  187. Fax:  (408)736-2156
  188. --------------------------------------------------------------------------------
  189. 1.6)! InterWorks Conference 1993.
  190.  
  191. The next InterWorks conference is the System Administration
  192. conference, to be held in November in Chicago.
  193. --------------------------------------------------------------------------------
  194. 1.7)  HP-UX publicly available software from InterWorks.
  195.  
  196. [ Dave Shaw maintains a library of publicly available HP-UX related software
  197.   on behalf of the InterWorks User Group.  Dave Shaw can be reached at
  198.   (303)443-9413, or via E-Mail at librarian@iworks.ecn.uiowa.edu.
  199.   The following is provided by Dave Shaw, the InterWorks Librarian. I've
  200.   deleted the specific package descriptions (getting too long!) see the README
  201.   mentioned below for details - Greg]
  202.  
  203. There is an archive of UX-related software on the InterWorks library node 
  204. (iworks.ecn.uiowa.edu--128.255.18.10). Note that everything is available 
  205. via anonymous ftp-- in "comp.hp"). The README there contains a complete 
  206. list of the available software. Nearly all of it is also available on a CD for
  207. $75.00 ($85.00 outside the U.S.). For ordering information contact 
  208. Carol Relph.
  209.  
  210. All of the archive is suitable for the 700 series machines, and I
  211. have started to verify that. Executables are included in some packages.
  212. If you take a package and find that you must build an executable (or do
  213. some porting) for your machine and/or OS level, I would appreciate
  214. hearing about your work and receiving a copy of the executable you built.
  215.  
  216. Note that I have had very little involvement in the writing or packaging 
  217. of any of the items on the list-- they are the result of the work of many 
  218. other people. In particular, note that the available binaries have not
  219. been compiled by me. If you are concerned about running binaries compiled
  220. by someone else, build them yourself with the available source. Also note 
  221. that individual authors may include text regarding the rights of others
  222. to use and distribute their code. 
  223.  
  224. Thanks to all the contributors.
  225. --------------------------------------------------------------------------------
  226. 1.8)! Anonymous FTP Sites for HP-UX, and UNIX related software.
  227.  
  228. Name:      iworks.ecn.uiowa.edu
  229. Address:   128.255.18.10
  230. Contents:  The InterWorks HP-UX Library in the directory "comp.hp" as
  231.            described above. The iworks node also keeps the last 4-6 
  232.            months of comp.sys.hp online (via an InterWorks member logon 
  233.            (see question #5 above). An archive going back to June 1990 
  234.            is available-- contact the InterWorks librarian for details.
  235.            Additionally, a large (~1300 line) "HP-UX Troubleshooting
  236.            Guide" is available under the InterWorks member logon.
  237.  
  238. Name:      ftp.csc.liv.ac.uk
  239. Address:   138.253.42.172
  240. Contents:  Large number of packages ported to HP-UX 8.07 and 9.01
  241.  
  242. Here is an overview of ftp.csc.liv.ac.uk as of Thu 10 Jun 1993:
  243. (The 2 most recently installed packages in each category are in brackets)
  244.  
  245.  50 packages in /hpux8/X11R4/Misc       (xephem-2.4e xsky-2.0)
  246.  44 packages in /hpux8/Games            (xboing-1.4b xboing-1.00b)
  247.  36 packages in /hpux8/Networking       (tin-1.2.0 wuftpd-2.1)
  248.  33 packages in /hpux8/X11R4/Graphics   (tgif-2.13 toybox-1.2b)
  249.  28 packages in /hpux8/Gnu              (gs_fonts-2.6.1 gs-2.6.1)
  250.  23 packages in /hpux8/X11R4/Demos      (xfractint-2.00 xball-3.0)
  251.  22 packages in /hpux8/X11R4/Toolkits   (xf-2.2 xtpanel-2.23)
  252.  18 packages in /hpux8/X11R4/Networking (xmosaic-1.1 xgopher-1.3)
  253.  17 packages in /hpux8/Sysadmin         (expect-4.7.1 xfsm-1.54)
  254.  16 packages in /hpux8/Misc             (pvm-3.1 gaps-5.11)
  255.  16 packages in /hpux8/Languages        (swi-1.6.17 swi-1.6.16)
  256.  15 packages in /hpux8/Text             (xdvi-1.17 dvips-5.516)
  257.  14 packages in /hpux8/X11R4/XView3     (workman-1.0.1 xviewtool-1.0)
  258.  14 packages in /hpux8/Users            (elm-2.4.22 es-0.84)
  259.  11 packages in /hpux8/Maths/Misc       (rjenkins-1.0 macaulay-3.0)
  260.  11 packages in /hpux8/Maths/Gap        (anupq-1.0 nq-1.0)
  261.  10 packages in /hpux8/NeuralNets       (som_pak-1.2 GAucsd-1.4)
  262.  10 packages in /hpux8/Editors          (mxedit-2.02 asedit-1.1)
  263.   8 packages in /hpux8/X11R4/Core       (appres-1.5 xdpyinfo-1.17)
  264.   7 packages in /hpux8/X11R5            (XR5src-5.23.part03 XR5src-5.23.part02)
  265.   7 packages in /hpux8/Maths/Lapack     (lapack-1.0a.part01 lapack-1.0a.part07)
  266.   6 packages in /hpux8/Physics          (fudgit-2.32 mutinfo-1.21b)
  267.   4 packages in /hpux9/Gnu              (gcc-2.4.3 gcc_built-2.4.3)
  268.   2 packages in /hpux9/Text             (nenscript-1.13 mp-2.5.8)
  269.   2 packages in /hpux9/Sysadmin         (yamm-2.4 patch-2.0.12g11)
  270. =======================================
  271. 424 packages in total
  272.  
  273. The Liverpool archive supports a gopher server at gopher.csc.liv.ac.uk
  274. (138.253.42.174) and also a mail server at mail-server@csc.liv.ac.uk for
  275. users without access to anonymous FTP.
  276.  
  277. Name:      hpux.ask.uni-karlsruhe.de
  278. Address:   129.13.200.57
  279. Contents:  The official German mirror site of ftp.csc.liv.ac.uk
  280.  
  281. Name:      ftp.cae.wisc.edu
  282. Address:   144.92.4.15
  283. Contents:  The official US mirror site of ftp.csc.liv.ac.uk
  284.  
  285. Name:      ftp.prz.tu-berlin.de 
  286. Address:   130.149.62.68
  287. Contents:  Much of the Liverpool archive.
  288.  
  289. Name:      export.lcs.mit.edu
  290. Address:   18.24.0.12
  291. Contents:  The X Window System and contributed clients.
  292.  
  293. Name:      hpcvaaz.cv.hp.com
  294. Address:   15.255.72.15
  295. Contents:  X Window System libraries and utilities.
  296.  
  297. Name:      lut.fi
  298. Address:   157.24.10.8
  299. Contents:  Various in /pub/hpux and /pub/unix/hp-ux
  300.  
  301. Name:      nic.funet.fi
  302. Address:   128.214.6.100
  303. Contents:  Various in /pub/unix/arch/hpux
  304.  
  305. Name:      prep.ai.mit.edu
  306. Address:   18.71.0.38
  307. Contents:  The Free Software Foundation's GNU utilities, etc.
  308.  
  309. Name:      hybrid.irfu.se
  310. Address:   130.238.30.23
  311. Contents:  X11 archive and shared libraries, full imake support,
  312.            and all missing .h files for both X11R4 and R5, dvi2pcl in /pub.
  313.  
  314. Name:      geod.emr.ca
  315. Address:   ?
  316. Contents:  GNU stuff ported to HP-UX 8.x by Pierre Mathieu.
  317. --------------------------------------------------------------------------------
  318. 1.9)! Where can I get a "Demo CD" with software for HP-UX?
  319.  
  320. HP is putting together a new version of LaserPro, which will be
  321. available shortly.
  322. --------------------------------------------------------------------------------
  323. 1.10) HP-UX patch information and mailing list.
  324.  
  325. In order to get HP-UX OS patches, you must be on HP software support.
  326. You can get them by calling the Response Center, or by using the "hpsl"
  327. tool on support.mayfield.hp.com. It will allow you to FTP patches, generally
  328. a subset of the full list.
  329.  
  330. Additionally, there is an HP-UX patch mailing list. Here is the announcement
  331. from Bart Muyzer <bartm@cv.ruu.nl>:
  332.  
  333. This is the official announcement of the "HP Patch Descriptions Mailing
  334. List". In short, the purpose of the mailing list is this:
  335.  
  336.  1. If somebody receives a patch from HP, he/she can post the *description* of
  337.     that patch to the mailing list.
  338.  2. Other members now know that a patch exists and can ask HP for "patch xxxx"
  339.     if they think they have a problem .
  340.  3. The patches itself are *never* posted!!!!!!!!
  341.  4. This list only exists as long as HP itself doesn't supply a list of 
  342.     available patches.
  343.  
  344. To reach ALL MEMBERS of the list, send e-mail to:
  345.         hpux-patch@cv.ruu.nl
  346. This is what you might want to do if you receive a new patch :-)
  347.  
  348. To SUBSCRIBE, send e-mail to:
  349.         hpux-patch-request@cv.ruu.nl
  350. PLEASE! Include your e-mail address in the message. Not all mailers generate
  351. proper return addresses.
  352.  
  353. Problems, questions, suggestions and the like should go to this address too.
  354. To ease searching for a patch to a specific problem, I've started to write a
  355. set of tools which I loosely call "pltools". Currently, there's one script
  356. (written in PERL) called plfind, that searches through an unofficial list of
  357. patch descriptions according to user supplied queries. Updates to this list
  358. and to the tools are posted on a semi-regular base. Also, each new member of
  359. the list receives the current distribution upon subscription.
  360.  
  361. The pltools-distribution is also available through anonymus FTP from
  362. ftp.csc.liv.ac.uk [138.253.42.172], directory /hpux/Sysadmin, file
  363. pltools-2.0.0.tar.Z.
  364. --------------------------------------------------------------------------------
  365. 1.11) How can I send mail to an "hpdesk" address?
  366.  
  367. For a person whose DESK address is:
  368.   JANE DOE /HP1234/XY
  369.  
  370. Ignore the subentity (XY) and use the form:
  371.   jane_doe@hp1234.desk.hp.com
  372.  
  373. Send them a test message and tell them to make a note of the return address,
  374. as forming internet addresses on DESK is a little more complicated.  If
  375. there is an X.400 system between you and the DESK person, what you get back
  376. may look like a very strange internet address, but it generally works.
  377.  
  378. [ Thanks to Bob Niland, late of HP, for this information. ]
  379. --------------------------------------------------------------------------------
  380. 1.12) What are the known issues with porting BSD-based programs to HP-UX?
  381.  
  382. Mike Peterson <system@alchemy.chem.utoronto.ca> periodically posts
  383. his list of BSD-HP tricks to comp.sys.hp.
  384. --------------------------------------------------------------------------------
  385. Subject:  THIRD PARTY VENDORS
  386. --------------------------------------------------------------------------------
  387. 2.1) Third party vendors for RAM.
  388.  
  389. The following vendors are listed in alphabetical order. No guarantees
  390. are made regarding compatibility or relative merit of the vendors.
  391.  
  392. Camintonn                          Clearpoint Research Corporation
  393. 22 Morgan                          1000 E. Woodfield Road, Suite 102
  394. Irvine, CA 92718                   Schaumburg, IL 60173
  395. (800) 843-8336                     (708) 619-9227
  396. (714) 454-6500
  397.  
  398. Concorde Technologies              Dataram
  399. 7966 Arjons Dr. B-201              PO Box 7528
  400. San Diego, CA 92126                Princeton, NJ 08543-7528
  401. (800) 359-0282                     (800) DATARAM
  402. (619) 578-3188                     (800) 799-0071
  403.  
  404. Digitial Micronics                 Eventide
  405. 2075 Corte Del Nogal               1 Alsan Way
  406. Unit N                             Little Ferry, NJ 07643
  407. Carlsbad, CA 92009                 (201) 641-1200
  408.  
  409. Helios Systems                     Herstal Automation
  410. 1996 Lundy Ave                     3171 West Twelve Mile Rd.
  411. San Jose, CA 95131                 Berkley, MI 48072
  412. (408) 432-0292                     (313) 548-2001
  413. (800) 366-0283
  414.  
  415. IEM                                Infotek Systems
  416. P.O. Box 1889                      625 South Lincoln
  417. Fort Collins, CO 80522             Suite 204
  418. (800) 321-4671                     Steamboat Springs, CO 80487
  419. (303) 221-3005                     (800) 767-1084
  420.  
  421. Intelligent Interfaces             ISA Ltd
  422. P.O. Box 1486                      1-1-5 Sekiguchi
  423. Stone Mountain, GA 30086-1486      Bunkyo-Ku
  424. (800) 842-0888                     Tokyo 112 Japan
  425.                                    81-3 (5261) 1160
  426.                                    US Office (Texas)
  427.                                    (713) 493-9925
  428.  
  429. Kelly Computer Systems             Kingston Technology Corporation
  430. 1101 San Antonio Rd.               17600 Newhope Street
  431. Mountain View, CA 94043            Fountain Valley, CA 92708
  432. (415) 960-1010                     (714) 435-2600
  433.  
  434. Martech                            Merida Systems
  435. 1151 W. Valley Blvd.               (617) 933-6790
  436. Alhambra, CA 91803-2493
  437. (800) 582-3555
  438. (818) 281-3555
  439.  
  440. MDL Corporation
  441. 15301 NE 90th St.
  442. Redmond, WA 98052
  443. FAX (206)861-6767
  444. (800)800-3766
  445. (206)861-6700
  446.  
  447. Newport Digital                    R Squared
  448. 14731 Franklin Avenue              11211 E. Arapahoe Rd., Suite 200
  449. Suite A                            Englewood, CO 80112
  450. Tustin, CA 92680                   (303) 799-9292
  451. (714) 730-3644                     (800) 777-3478
  452.  
  453. [ Thanks to Roy McMorran <mcmorran@ll.mit.edu> for the info on RAM suppliers. ]
  454. --------------------------------------------------------------------------------
  455. 2.2)+ Third party vendors for peripherals
  456.  
  457. Vendor              Products
  458. ------              --------
  459. MDL Corporation     Disk, tape, optical, jukebox, EISA expansion, RAID, others.
  460. 15301 NE 90th St.
  461. Redmond, WA 98052
  462. FAX (206)861-6767
  463. (800)800-3766
  464. (206)861-6700
  465. --------------------------------------------------------------------------------
  466. Subject:  UTILITIES
  467. --------------------------------------------------------------------------------
  468. 3.1)  ASCII to Postscript converter.
  469.  
  470. You can get an ASCII to Postscript converter from ftp.uu.net in the file
  471. /usenet/comp.sources.misc/volume10/a2ps3.Z.
  472. --------------------------------------------------------------------------------
  473. 3.2) How do I make perl on HP-UX?
  474.  
  475.    Reply like this to Configure:
  476.  
  477.    1. When it asks for optimization flags answer
  478.         +O1 if you have HP-UX 7.05 or less
  479.         -O  if you have HP-UX 8.0 or later.
  480.    2. When it asks for additional flags to cc answer
  481.         -DJMPCLOBBER
  482.    3. When it asks for additional libraries answer
  483.     -lndbm -lm    (ignore the other libraries Configure finds).
  484.       You can also safely add -lBSD if you wan't BSD signal semantics.
  485.    4. When it asks if you wan't to use perl's malloc answer
  486.     y
  487.       If you have HP-UX 8.07 or later you may choose to answer no to this since
  488.       that malloc is OK.
  489.    5. When perl asks on which boundarie a double must be aligned answer
  490.     8    if you are on a 9000/800 or 9000/700 series machine (HP-PA
  491.          architecture).
  492.     2    otherwise (Motorola 68k architecture)
  493. --------------------------------------------------------------------------------
  494. 3.3)  What is the status of the various gnu items on HP-UX?
  495.  
  496. Pierre Mathieu <mathieu@geod.emr.ca> periodically posts a list
  497. to comp.sys.hp; the last revision is 1.4.
  498. --------------------------------------------------------------------------------
  499. Subject:  X WINDOW SYSTEM, OSF/MOTIF, AND HP-VUE
  500. --------------------------------------------------------------------------------
  501. 4.1)! X11R4 Libraries (Athena, etc.) and utilities (imake, etc.).
  502.  
  503. As you may have noticed, HP does not ship a "full" set of X11 libraries
  504. and include files, and does not provide imake or associated tools.
  505. There is a HP maintained, but UNSUPPORTED, set of X11R4 libraries and utilities
  506. for the HP 9000 Series 300, 400, 700, and 800.  You can get the libraries,
  507. include files, and config files (imake) via anonymous FTP from
  508. hpcvaaz.cv.hp.com (15.255.72.15) in the directory pub/MitX11R4/libs.s*00.tar.Z.
  509. This is also archived on the iworks node as mentioned above. HP has
  510. also submitted X11R5 sources to the iworks node as mentioned above.
  511. And, Bo Thide has X11R4 and R5 support available via anon. FTP
  512. as mentioned above.
  513. --------------------------------------------------------------------------------
  514. 4.2)  How can I display an image on the root window with HP-VUE?
  515.  
  516. Set Vuewm*backdrop*image:   none. Note that there is an explicit
  517. pick for this in the Style Manager with HP-VUE 3.0. When the backdrop
  518. is clear, you can use xloadimage, xsetroot, xv, or the like to display
  519. the image of your choice.
  520. --------------------------------------------------------------------------------
  521. 4.3) How do I get a scroll bar on hpterms?
  522.  
  523. Set the following resources:
  524.  
  525. HPterm*scrollBar:    TRUE
  526. HPterm*saveLines:    1024
  527.  
  528. or some other other arbitrarily large number.  To do this interactively, use
  529. "hpterm -sb -sl 1024". You can also set these in an app-default file
  530. (/usr/lib/X11/app-defaults/HPterm).
  531. --------------------------------------------------------------------------------
  532. 4.4)! How can I put a title in my hpterm titlebar?
  533.  
  534. Here is a two line program that you might find useful:
  535.  
  536. /* Quick and dirty program to put argv[1] in the title bar of an hpterm
  537.    Tom Arons March 1992
  538. */
  539. #include <string.h>
  540. main(argc,argv)
  541.         int argc; char **argv;
  542. {
  543.         printf("\033&f0k%dD%s", strlen(argv[1]), argv[1]);
  544.         printf("\033&f-1k%dD%s", strlen(argv[1]), argv[1]);
  545. }
  546.  
  547. An alternative is:
  548.  
  549. #!/bin/sh
  550. LENGTH=`strlen $1`
  551. echo "&f0k${LENGTH}D$1\c"
  552.  
  553. In case in gets mangled, that's ESC between the first quote and the f0k.
  554.  
  555. strlen, in case you don't have it, comes from:
  556.  
  557. #include <stdio.h>
  558.  
  559. main(argc, argv)
  560.    int argc;
  561.    int *argv[];
  562. {
  563.    if (argc != 2)
  564.       exit(0);
  565.    printf("%d\n", strlen(argv[1]));
  566. }
  567.  
  568. [ Thanks to Tom Arons <arons@ash.eecs.ucdavis.edu> and John T. Beck, HP. ]
  569. --------------------------------------------------------------------------------
  570. 4.5) How come my hpterms keep going away by themselves?
  571.  
  572. You are probably using the C Shell (/bin/csh) and have autologout set (it is
  573. set to 60 minutes by default).  Put an "unset autologout" in your ".cshrc".
  574.  
  575. If you are using the korn shell it is probably due to the value set for
  576. the shell variable TMOUT.  Set it to 0 (infinite timeout).
  577.  
  578. [ Thanks to Jim Sharpe <jms@spatial.com> for the Korn Shell information. ]
  579. --------------------------------------------------------------------------------
  580. 4.6) How come my HP X/Motif clients take a LONG time to display on a Sun?
  581.  
  582. The problem is with the OW3 server.  You can request OW3 patch 100444-35
  583. (or whatever is the current replacement) from Sun to fix the problem.
  584. Supposedly this has been rolled into OW 3.0.1. A workaround is to
  585. set the X resource *useColorObj: False.
  586. --------------------------------------------------------------------------------
  587. 4.7) How can I get my login stuff to work under HP-VUE?
  588.  
  589. When you login  via VUE, VUE  sources  ~/.vueprofile  *INSTEAD  OF* your
  590. .login (csh),  .profile  (sh/ksh),  and other  startup  files.  Whatever
  591. actions  are taken in  ~/.vueprofile  are  persistent  across any  children
  592. started  by VUE.  Meaning that if you  symbolic  link  ~/.vueprofile  to your
  593. ~/.profile,  then VUE will source your  ~/.profile  before  starting the
  594. window system, and all children  (hpterms/xterms  and their  interactive
  595. shells) will inherit this environment (prompt variables et al).
  596.  
  597. Documentation indicates your ~/.vueprofile should contain either csh, or
  598. sh/ksh syntax, depending upon what your login shell is.
  599.  
  600. When csh is my login shell, I set my  ~/.vueprofile  to contain only two
  601. lines:
  602.  
  603.     if ( -f /etc/csh.login ) source /etc/csh.login
  604.     if ( -f ~/.cshrc ) source ~/.cshrc
  605.  
  606. When sh/ksh is my login shell, I set my ~/.vueprofile to contain only two
  607. lines:
  608.  
  609.     test -f /etc/profile && . /etc/profile
  610.     test -f ${HOME}/.profile && . ${HOME}/.profile
  611.  
  612. So, before  starting the window  manager and any clients, VUE makes sure
  613. that all my shell startup files are sourced and all the variables I want
  614. in my shell environment are already there and waiting for me.
  615.  
  616. [ Thanks to Steve Jumonville, HP]
  617. --------------------------------------------------------------------------------
  618. 4.8) How can I get console messages to go to an hpterm?
  619.  
  620. You can avoid console messages writing to your graphics planes and
  621. trashing your VUE session by starting an hpterm and designating it to
  622. receive console messages, and to de-iconify, when console messages are
  623. received.  Put something like this in your "vue.session*" file under
  624. your ~/.vue directory (line wrapped for readability):
  625.  
  626. # Start up the  Terminal  Console as iconic,  and raise it if any output
  627.  
  628. vuesmcmd -cmd "hpterm -C -iconic -ls -sb -sl 256 -name Console -T Console 
  629. -xrm *mapOnOutputDelay:\ 30 -xrm *mapOnOutput:\ True 
  630. -xrm Console*clientFunctions:\ -close -xrm *workspaceList:\ all"
  631.  
  632. [ Thanks to Steve Jumonville, HP]
  633. --------------------------------------------------------------------------------
  634. 4.9)  What happened to the vuewm key accelerators at VUE 3.0?
  635.  
  636. Well, we don't really know. Here's how to set them, though.
  637. Add an entry like this (you can, of course, customize it to your
  638. liking) to your $HOME/.vue/vuewmrc file:
  639.  
  640. Menu VueWindowMenu
  641. {
  642.     "Restore"          _R        Alt<Key>F5         f.normalize
  643.     "Move"             _M        Alt<Key>F7         f.move
  644.     "Size"             _S        Alt<Key>F8         f.resize
  645.     "Minimize"         _n        Alt<Key>F9         f.minimize
  646.     "Maximize"         _x        Alt<Key>F10        f.maximize
  647.     "Lower"            _L        Alt<Key>F3         f.lower
  648.      no-label                                       f.separator
  649.     "Occupy..."        _O        Alt<Key>O          f.workspace_presence
  650.     "Occupy all"       _a        Alt Shift<Key>O    f.occupy_all
  651.      no-label                                       f.separator
  652.     "Remove from WS"   _e        Alt Shift <Key>F4  f.remove
  653.     "Close"            _C        Alt<Key>F4         f.kill
  654. }
  655.  
  656. And then add this resource:
  657.  
  658. Vuewm*windowMenu:       VueWindowMenu
  659.  
  660. And restart the window manager.
  661.  
  662. [ Thanks to Bill Bennett, HP]
  663. --------------------------------------------------------------------------------
  664. 4.10)! How come I can no longer disable the caps lock key with xmodmap?
  665.  
  666. A common activity in the past has been to disable the, shall we say,
  667. "placement challenged" caps lock key on the ITF keyboard using a simple
  668. xmodmap script. This no longer works consistently at X11R5/VUE 3.0; the
  669. best solution so far:
  670.  
  671. In file ~/.vue/sessions/lite/vue.session:
  672.  
  673. /usr/bin/X11/xmodmap - << EOF
  674.         clear lock
  675.         keycode 55 = Control_L
  676.         keycode 86 = Caps_Lock
  677.         keycode 39 = grave asciitilde guillemotleft guillemotright
  678.         keycode 71 = Escape
  679.         add Lock = Caps_Lock
  680.         add Control = Control_L
  681. EOF
  682.  
  683. This works until logout/login, when Caps Lock toggles the control
  684. feature, even though 'xmodmap -pm' shows that Lock has no assignments.
  685. You have to restart the server to reset completely, which can be
  686. automated by setting the value         
  687.  
  688. Vuelogin*terminateServer:   True
  689.  
  690. in the file /usr/vue/config/Xconfig.
  691. --------------------------------------------------------------------------------
  692. 4.11)! How come vi behaves strangely in xterms at 9.01?
  693.  
  694. Apparantly initial invocation of xterm does not set LINES/COLUMNS correctly,
  695. and vi doesn't handle that real well. One workaround is to put the
  696. following in .cshrc:
  697.  
  698. if ( $?WINDOWID ) then
  699.    set noglob;eval `/usr/bin/X11/resize`;unset noglob
  700. endif
  701.  
  702. [ Thanks to Raymond Nijssen for the workaround. ]
  703. --------------------------------------------------------------------------------
  704. 4.12)+ How do I disable HP-VUE?
  705.  
  706. One solution is to create your own startup script in a file, say, ~/.Xsession, 
  707. then modify your ~/.vueprofile so that ~/.Xsession gets executed AND MAKE SURE 
  708. IT NEVER FALLS THROUGH TO VUE, i.e. use exec to start your script.  You can 
  709. use .vueprofile also to make sure your .cshrc is read, environment set etc.
  710. An example:
  711.  
  712. #!/bin/csh
  713.  
  714. # this may be redundant
  715. source $home/.cshrc
  716.  
  717. if ( -f $HOME/.Xsession ) then
  718.     # read clients from file
  719.     exec /bin/sh $HOME/.Xsession
  720. else
  721.     if ( -f $HOME/.Xdefaults ) then
  722.         xrdb -merge .Xdefaults
  723.     endif
  724.     exec xterm 
  725. endif
  726.  
  727. # never reached !!!
  728.  
  729. On a system wide basis, you could do something like this:
  730.  
  731. In /usr/lib/X11/vue/Vuelogin/Xsession:
  732. --------------------------------------
  733. #
  734. #  determine startup mechanism...
  735. #
  736.  
  737.   if [ -x $HOME/.vuesession ]; then
  738.     startup=$HOME/.vuesession
  739.   else
  740.   if [ -x $VUESESSION ]; then
  741.     startup=$VUESESSION
  742.   else 
  743. .....
  744.  
  745. ------------------------------------------------------
  746. Now if the file ~/.vuesession exists vuelogin will start this.
  747.  
  748. ~/.vuesession:
  749. --------------
  750. #!/bin/sh
  751. /usr/local/bin/xscreensaver -lock &
  752. /usr/bin/X11/xphoon &
  753. /usr/bin/X11/xbiff -geometry +0+0 &
  754. /usr/bin/X11/mwm &
  755. exec /usr/bin/X11/xterm -C -name "console" -geometry +0-0
  756. ------------------------------------------------
  757. When the last client exits the session terminates.
  758.  
  759. [ Thanks to Andreas Stolcke and Neal Becker. ]
  760. --------------------------------------------------------------------------------
  761. 4.13)+ What's a good termcap entry for hpterm?
  762.  
  763. Although it is not supported for hpterm use, the 262x entry in
  764. /etc/newconfig/termcap will work.
  765.  
  766. [ Thanks to Frank Slootweg. ]
  767. --------------------------------------------------------------------------------
  768. 4.14)+ My screen is wedged. What should I do?
  769.  
  770. One thing you can try is to unplug the keyboard for ~5 seconds. Note that
  771. you will have to rerun xset -r to get autorepeat to work after doing this.
  772.  
  773. [ Thanks to Paul Liebert, HP. ]
  774. --------------------------------------------------------------------------------
  775. Subject:  OPERATING SYSTEM
  776. --------------------------------------------------------------------------------
  777. 5.1)  Can I have filenames longer than 14 chars?
  778.  
  779. Yes, change to long filenames using /etc/convertfs. You can't
  780. go back, though. Here's how to check if an existing filesystem
  781. has long filenames enabled:
  782.  
  783. # tunefs -v /dev/rdsk/XXX | grep magic
  784. magic   95014   clean   FS_OK   time    Tue Mar 23 14:13:01 1993
  785.        \__ if = 95014 then long filenames
  786.         \__ if = 11954 then short filenames
  787.         
  788. [ Thanks to Ken Burke. ]
  789. --------------------------------------------------------------------------------
  790. 5.2) How can I tell what filesets have been loaded on my system?
  791.  
  792. Check the /etc/filesets directory. There is a file there for each fileset that
  793. has been loaded that summarizes the files in that fileset.  This directory is
  794. used by the /etc/update, /etc/updist, /etc/netdistd, and /etc/rmfn utilities
  795. for loading and unloading software.
  796. --------------------------------------------------------------------------------
  797. 5.3) How do I safely remove software from my system?
  798.  
  799. The _only_ safe way to remove HP software is to use /etc/rmfn.
  800. --------------------------------------------------------------------------------
  801. 5.4) What's the scoop on HP-UX 9.0/9.01?
  802.  
  803. HP-UX 9.0 and 9.01 have now officially released from HP. 9.0 for
  804. 700s was a transition release intended to support early shipments
  805. of 715 hardware. The 9.01 Release Notes state that 9.0 and 9.01
  806. have the same API and ABI. They also state that 9.01 is required
  807. for the 725, 735/755, 747i w/VME, 745i w/EISA, 742rt and 742i,
  808. PA-RISC upgrades for 425s and t, 1G, 2G, and 525M add-on disks,
  809. and CRX48Z graphics. 9.01 also includes a software workaround for
  810. a low-probability bug in the PA7100 processor, support fast/wide
  811. SCSI, has a new version of IOMAP, and a new version of Imageview.
  812. --------------------------------------------------------------------------------
  813. 5.5) How come HP-UX doesn't support NFS root access?
  814.  
  815. HP-UX versions previous to 9.0/9.01 do not support NFS root access to mounted
  816. file systems. This because they are at an old revision of NFS. You *can* hack
  817. your kernel to provide it, but it's dangerous, unsupported, and a security
  818. hole. 9.0/9.01 supports full NFS 4.1 functionality, including NFS root.
  819. --------------------------------------------------------------------------------
  820. 5.6)  Can I get HP-UX to try DNS ahead of NIS?
  821.  
  822.         if the address is the local node's IP add., then NIS or /etc/hosts
  823.                 is used because the IP is reachable and named is not running.
  824.         if the address is the name server's IP add.,
  825.                 if the address is reachable but named is not running, then
  826.                         NIS or /etc/hosts is used (the same reason)
  827.                 if the address is not reachable (eg the node is down) then
  828.                         at 7.0 NIS or /etc/hosts is used;
  829.                         at 8.0 resolution fails
  830.                         at 9.x resolution fails.
  831.                         
  832. It is not clear why "resolution fails" at 8.x and 9.x. 
  833.  
  834. If there are more than one IP address in resolv.conf, no NIS or /etc/hosts
  835. fallback will be used after all addresses are tried and failed.
  836.  
  837. As for additional configuration ... the answer is NO, you can't get it
  838. to try NIS before DNS.
  839.  
  840. [ Thanks to Jim O'Shea at the Atlanta RC for this information. ]
  841. [ Thanks to James Thomas, nmsu.edu for addition 9.x info. ]
  842. --------------------------------------------------------------------------------
  843. 5.7) How come the LOGnnnn files in /usr/adm keep growing and growing?
  844.  
  845. The LOGnnnn files in /usr/adm (8.x except 8.02) or /usr/adm/diag (8.02
  846. and 9.0) are the diagnostic event log files.  Kernel drivers send data
  847. to the diagnostic system when certain events, usually hw/sw problems,
  848. occur.  The diagnostic daemons (DIAGMON, DEMLOG, MEMLOGP, DIAGINIT) log
  849. the data to these files.  There is also a MEMLOG file in the same
  850. directories to which MEMLOGP logs memory errors.  HP Support uses the
  851. logged data to diagnose problems and to predict hardware failure.
  852.  
  853. If the LOGnnnn files are growing (other than creating a new 40 byte file
  854. each time the system reboots) then something is wrong with the system.
  855. Often what is wrong is that the diagnostics system was improperly
  856. installed.  Check that the following files exist for each node:
  857.  
  858.     /etc/mknod /dev/config c 69 0x000000
  859.     /etc/mknod /dev/dmem   c 27 0x000000
  860.  
  861. There are a number of other device files (see /system/CORE-DIAG/customize)
  862. but I don't believe they are needed for the logging aspect of diagnostics.
  863.  
  864. If you examine the contents of the log files that may give a clue as to
  865. what's wrong.  However, the output is intended for HP Support and factory
  866. consumption and may not be very intelligible to customers.  To examine a
  867. log file:
  868.  
  869.     $ sysdiag
  870.     DUI> logtool
  871.     LOGTOOL> list log=nnnn
  872.     LOGTOOL> exit
  873.     DUI> exit
  874.  
  875. where nnnn is the numeric part of the /usr/adm/diag/LOGnnnn file name.
  876. The utility logtool is safe to use as far as I know but don't run any
  877. other utilities at the DUI prompt--you could easily adversely affect
  878. your system.  If you have a support contract I recommend you get them
  879. to review your log files.  There is an extensive help command within
  880. sysdiag and logtool.
  881.  
  882. If you want to turn off diagnostic logging just remove execution
  883. permission for the file /usr/diag/bin/DIAGINIT.  Note that if you do
  884. this and your system has a problem later, not having the records logged
  885. to diagnostics by the kernel will hamper resolution of the problem.
  886.  
  887. Existing log files can be deleted at the cost of losing the data they
  888. contain.  The highest numbered log file is the active log file and
  889. should not be deleted.
  890.  
  891. There is a sysdiag(1M) man page.  As of 9.0 there is a diaginit(1M) man
  892. page which documents the various daemons.
  893.  
  894. [ Thanks to Wayne Krone of HP. ]
  895. --------------------------------------------------------------------------------
  896. 5.8) How come I can't lock mail or other files on a Sun?
  897.  
  898. Believe it or not, Sun's lockd is broken at 4.1.x. The proper Sun patch
  899. number is Patch-ID# 100075-09, called the "lockd jumbo patch".
  900. --------------------------------------------------------------------------------
  901. 5.9)  What are the known issues with HP-UX 8.07?
  902.  
  903.  abs() is defined in two places for C++, stdlib.h and math.h.
  904.  the IDL includes do not support C++ (fixed with patch PHNE_0974).
  905.  PostScript printing from Datebook (week or month) fails.
  906.  Datebook "View Year" display font is goofy looking and doesn't line up.
  907.  statd can hang when accessing Apollo objects (fixed with PHNE_0690).
  908.  automounter crashes when -hosts is specified (fixed with PHNE_0936).
  909.  virtual memory performance problems (fixed with PHKL_1065).
  910. --------------------------------------------------------------------------------
  911. 5.10) Why are mail files in /usr/mail are owned by daemon instead of the 
  912.      recipient?
  913.  
  914. The mail delivery agent /bin/rmail needs to be able to chown(2) these files.
  915. It cannot do so if you have removed the privilege CHOWN (see setprivgrp(1m);
  916. removing CHOWN is recommended to prevent cheating on disk quotas).  To get 
  917. around this, noting that /bin/rmail runs setgid to group mail, you can grant 
  918. privilege CHOWN to group mail only by inserting the line "mail CHOWN" in 
  919. /etc/privgroup. The change takes effect on the next reboot, or immediately 
  920. if you execute the command "setprivgrp -f /etc/privgroup".
  921.  
  922. [ Thanks to Jim Richardson <jimr@maths.su.oz.au> for this submission. ]
  923. --------------------------------------------------------------------------------
  924. 5.11) How can I tell if I need more than a 2-user license?
  925.  
  926.     There are several fundamental things to remember about HP-UX licensing:
  927.  
  928.     o Series 700 and Series 800 users are now counted the same way
  929.     o Display console counts as one user
  930.     o Each ASCII terminal counts as a user, regardless of how it is
  931.     connected
  932.     o The LAN connection counts as one user
  933.  
  934.     Ascii Terminals
  935.  
  936.     The simple rule to remember is any ASCII terminal that is logged in counts
  937.     as a user.
  938.  
  939.     ASCII terminal connections can come in several different forms:
  940.  
  941.     o Direct-connected via a serial terminal multiplexer
  942.     o Connected via Data Terminal Concentrators (DTCs) or via
  943.     terminal servers
  944.     o Personal Computers (PCs) acting in terminal emulation mode,
  945.     whether connected via serial line or via Local Area Network (LAN)
  946.  
  947.     X-terminals and workstations
  948.  
  949.     When a customer buys an X-terminal or workstation from HP or from 
  950.     another vendor, HP acknowledges that the customer has also bought a 
  951.     single Unix license-to-use.
  952.  
  953.     Therefore, the customer has the right to an unlimited number of logins and
  954.     terminal windows _over_the_LAN_ to a Series 700 or Series 800 from either 
  955.     X-terminals or workstations. These logins can be via X terminal windows
  956.     (_hpterm_ and _xterm_), _telnet_, _rlogin_, or other means.
  957.  
  958.     PC's that use X-terminal emulation software such as XView each count the
  959.     same as an X terminal. This is because the PC essentially becomes an 
  960.     X-terminal when it is running the X server software. Therefore, when a PC
  961.     is running an X-terminal emulator, the PC has the right to an unlimited
  962.     number of logins to an HP-UX system.
  963.  
  964.     Exceptions
  965.  
  966.     The policy of counting DTC users is new for the Series 700.
  967.     Customers who purchased Series 700 systems prior to HP-UX 9.0 shipments
  968.     (late calendar 1992) and use them as host systems for multiple DTC-
  969.     connected terminals, may continue to use those configurations without
  970.     buying a license upgrade. An update to HP-UX 9.0 will not lock out these
  971.     configurations.
  972.     
  973. [Thanks to Tony Hart, HP]
  974. --------------------------------------------------------------------------------
  975. 5.12) How can I tell what patches are in the kernel?
  976.  
  977. "what /hp-ux" will present you with patch strings, which you can
  978. compare with the strings called out in the patch text file. A typical
  979. patch string is:
  980.  
  981. PATCH_8.07 nfs_vnops.c 1.15.61.4 92/01/10 PHKL_0736 PHKL_0942
  982.  
  983. which shows that PHKL_0942 has been applied to the kernel.
  984. --------------------------------------------------------------------------------
  985. 5.13) How come I have to hit return after control-d in the Korn shell?
  986.  
  987. You need to set the "viraw" option.
  988. --------------------------------------------------------------------------------
  989. 5.14) How do I boot into single user mode?
  990.  
  991. Press ESC to stop the auto-boot.
  992. When the list of boot devices is presented:
  993.  
  994. b PX ISL    (where X is your root disc)
  995.  
  996. And at the ISL> prompt:
  997.  
  998. ISL>  hpux -iS disc(;0)/hp-ux
  999.  
  1000. The '-iS' are the flags to init which says come up single user.  The rest of
  1001. the command is what the bootprocess does automatically.
  1002.  
  1003. [Thanks to Stuart Jarriel <stuart@TIVOLI.COM>.]
  1004. --------------------------------------------------------------------------------
  1005. 5.15)  How come my Korn shell login hangs?
  1006.  
  1007. This can happen if the user's home directory is across an NFS mount point;
  1008. you can workaround the problem by completely unprotecting (chmod 777)
  1009. .sh_history, or by pointing HISTFILE to somewhere local.
  1010. --------------------------------------------------------------------------------
  1011. 5.16)  How can I avoid those annoying copyright notices on login?
  1012.  
  1013. The following code in /etc/profile prints the copyright notice the first
  1014. time each user logs in:
  1015.  
  1016.     NUMLOGINS=`/etc/last | grep $LOGNAME | wc -l`
  1017.     if [ $NUMLOGINS -lt 2 ]
  1018.     then
  1019.         cat /etc/copyright
  1020.     fi
  1021.  
  1022. (Actually, each user will get the copyright on their first login after each 
  1023. time the /etc/wtmp file is pruned, but that needn't be often.)
  1024.  
  1025. [Thanks to Paul Gootherts, pdg@cup.hp.com]
  1026. --------------------------------------------------------------------------------
  1027. 5.17)  How can I turn off quota checking?
  1028.  
  1029. You can disable the quota binary from executing:
  1030.  
  1031.     chmod -x /usr/bin/quota 
  1032.     
  1033. This disables quotas for 8.x systems; for 9.x systems you need to also
  1034. disable edquota:
  1035.  
  1036.     chmod -x /etc/edquota
  1037.  
  1038. [Thanks to Eric Hamilton, hamilton@cup.hp.com]
  1039. --------------------------------------------------------------------------------
  1040. 5.18)! What are the issues with HP-UX 9.01?
  1041.  
  1042. Some of the things that people have seen with HP-UX 9.01:
  1043.  
  1044. rmfn of the NW-7XX fileset leaves behind an empty directory (/etc/conf/netware)
  1045. and subsequent kernel builds (for patch install) fails until this directory is 
  1046. removed by hand.
  1047.  
  1048. When the length of a macro expansion exceeds an unspecified size, cpp.ansi 
  1049. leaves some macros unexpanded in the output. Patched by PHSS_2199.
  1050.  
  1051. The linker does not traverse shared library search paths itself. Patched
  1052. by PHSS_2187.
  1053.  
  1054. Various X11 problems have been reported including drawing problems
  1055. and memory leaks. Get the latest X server (currently PHSS_2372).
  1056.  
  1057. Various serious C compiler problems have been fixed with PHSS_2223.
  1058.  
  1059. Memory leaks can occur and lock up a system; patch PHKL_2348 may fix it.
  1060.  
  1061. There has been some controversy over the implementation of the dynamic
  1062. buffer cache at 9.01; people have been seeing situations where the
  1063. cache has grown quite large and the syncer takes over the system
  1064. swapping it out. You can disable the dbc with the "bufpages" kernel 
  1065. parameter; set bufpages to 10% of your physical memory, e.g.
  1066. if you have an S700 with 16M of memory, set bufpages to:
  1067.  
  1068. bufpages = 16,000 K physical ram / 4 K per page / 10 (percent ) = 400
  1069.  
  1070. You can also set a kernel parameter called "dbc_ceiling" that
  1071. limits the growth of the buffer cache. Following is a script
  1072. from Dave Lechtenberg of HP to do that:
  1073.  
  1074. -------------- cut here ----------------
  1075. #!/bin/ksh
  1076.  
  1077. #
  1078. # Usage: setdbc dbc_ceiling_value_in_mbytes
  1079. #
  1080. # Sets dbc_ceiling value in kernel file (/hp-ux).  You must be super-user 
  1081. # to run this command.  After running this command, the system must be 
  1082. # rebooted to make changes take effect.
  1083. #
  1084.  
  1085. if [ $# = 0 ]
  1086. then
  1087.         echo "Usage: $0 dbc_ceiling_value_in_mbytes"
  1088.         exit 1
  1089. fi
  1090.  
  1091. whoami | grep -q root
  1092. if [ $? -ne 0 ]
  1093. then
  1094.         echo "Error: You must be super-user to run this command"
  1095.         exit 1
  1096. fi
  1097.  
  1098. #  max_mem is physical memory limit on the system
  1099. max_mem=$(echo "mem_ptr/D" | adb /hp-ux /dev/kmem | awk '{ print $2 }' | sed '/^$/d')
  1100. max_mem=$(expr $max_mem / 1048576)
  1101.  
  1102. dbc_ceiling=$1
  1103. if [ $dbc_ceiling -gt $max_mem ]
  1104. then
  1105.     echo "Error: dbc_ceiling cannot be greater than physical memory limit"
  1106.     exit 1
  1107. else
  1108.     dbc_ceiling=$(expr $dbc_ceiling "*" 256)
  1109.     hexval=$(echo $dbc_ceiling | awk '{printf "0x%x\n",$1}')
  1110.     echo "dbc_ceiling?W $hexval" | adb -w /hp-ux > /dev/null
  1111.     echo "The system must be rebooted to make changes take effect."
  1112. fi
  1113. ----------------- cut here ---------------------
  1114.  
  1115. [ Thanks to various people, too numerous to mention. ]
  1116. --------------------------------------------------------------------------------
  1117. 5.19)+ Why does chown behave differently at 9.01?
  1118.  
  1119. chown(2) on symbolic links now chown's the file which the link is pointing to
  1120. instead of the link itself. If you want to go back to the olf behavior, you
  1121. can set the 'hpux_aes_override' parameter to '1'.  This can be done by
  1122. modify /etc/master ('hpux_aes_override AES_OVERRIDE      1') and changing
  1123. the dfile 'hpux_aes_override  1'.  Or by adb'ing the kernel;
  1124. adb -w /hp-ux /dev/kmem
  1125. hpux_aes_override?W 1       # For the /hp-ux
  1126. hpux_aes_override/W 1       # For the current kernel
  1127. $q
  1128.  
  1129. [ Thanks to Trond Haugen, HP]
  1130. --------------------------------------------------------------------------------
  1131. 5.20)+ How can I track log files and core files?
  1132.  
  1133. At 9.01, SAM allows you to track all standard log files and trim them if
  1134. desired. It will also find all core files on a file system and allow you
  1135. to get rid of them.
  1136. --------------------------------------------------------------------------------
  1137. Subject:  COMPILERS AND LINKERS
  1138. --------------------------------------------------------------------------------
  1139. 6.1)  What's a P-FIXUP error?
  1140.  
  1141. Several questions on comp.sys.hp lately have involved the Gnu C compiler
  1142. and the linker message below :
  1143.  
  1144.         gcc  test_h.o -o test_h ../libg++.a -lm
  1145. ld: R_DATA_ONE_SYMBOL fixup in file ../libg++.a(streambuf.o) for code unsat
  1146. symbol "abort" - use P' fixup
  1147. collect: /bin/ld returned 1 exit status
  1148.  
  1149.    This is caused by the code generator emitting assembly code in a data
  1150. subspace to initialize a function pointer, equivalent to :
  1151.  
  1152.     .word    foo
  1153.  
  1154. where (in this case) foo() is an extern, and shared libraries are referenced
  1155. by the executable being built (usually libc.sl).  
  1156.  
  1157.    The linker is being helpful by pointing out a fatal error waiting
  1158. to happen, as function pointers are different in the presence of shared
  1159. libraries.  A different fixup is needed to generate the kind of procedure
  1160. label that can be called.  This is explained under "Procedure Labels" in
  1161. Chapter 7 of "Programming on HP-UX" (Part # B2355-90026 E0892) and at the
  1162. end of "Expressions" in Chapter 1 of the Assembly Language Reference Manual
  1163. (Part # 92432-90001 E0191).
  1164.  
  1165.    There are two ways to fix this :
  1166.     1) Change the code generation to the equivalent of :
  1167.         .word P%foo
  1168.     or
  1169.     2) Link the program using the "-a archive" linker option.  The
  1170.     easiest way to do this is via the LDOPTS environment variable :
  1171.         setenv LDOPTS "-a archive"
  1172.          - or -
  1173.         LDOPTS="-a archive"; export LDOPTS
  1174.  
  1175.    The first fixes the problem directly, generating an R_DATA_PLABEL fixup
  1176. which is unambiguous whether shared libraries are present or not.  The
  1177. second puts you back in time to the situation before shared libraries were
  1178. added to HP-UX.  Without shared libraries HP-UX drew no distinction between
  1179. code addresses and procedure labels - an ambiguity that the P% fixup syntax
  1180. resolves.
  1181.  
  1182.    The reason the linker can't just fix this situation is that there are
  1183. cases where code addresses are implicitly or explicitly desired, cases that
  1184. are part of the motivation for having an assembler to begin with.
  1185. Unfortunately, in this case a message designed to be helpful to an errant
  1186. assembly programmer is instead a symptom of an out-of-date code generator,
  1187. and is too low-level to help the people seeing it.  The other alternative
  1188. (letting the program segmentation violate at runtime with no warning) would
  1189. be more likely to result in the user blaming the Gnu code generator instead
  1190. of HP's linker, but otherwise very little more satisfying.
  1191.  
  1192. [thanks to Carl Burch, HP]
  1193. ---------------------------------------------------------------------------
  1194. 6.2)  Where is regcmp on HP-UX?
  1195.  
  1196. RTFM - from man regcmp:
  1197.  
  1198.       regcmp and regex are kept in /lib/libPW.a, and are linked by using the
  1199.       -lc and -lPW options to the ld or cc command.  See WARNINGS below.
  1200. ...
  1201.  
  1202.  WARNINGS
  1203.       regcmp and regex are kept in /lib/libPW.a.  Unfortunately,
  1204.       /lib/libPW.a also contains some functions that have the same names as
  1205.       functions contained in the default C library, /lib/libc.a.  To prevent
  1206.       unexpected results due to these name conflicts, always search libc
  1207.       before searching libPW.  This is done with the ld (or cc) command line
  1208.       option sequence -lc -lPW which satisifies all standard C functions
  1209.       from libc then searches libPW for the regcmp and regex functions
  1210.       (there is also an implied -lc following the explicit -lPW to satisfy
  1211.       any additional C functions required by regcmp and regex).
  1212.  
  1213.       User programs that use regcmp might run out of memory if regcmp is
  1214.       called iteratively without freeing vectors that are no longer
  1215.       required.
  1216.  
  1217. [thanks to Andre Srinivasan, <andre@cs.pitt.edu>]
  1218. --------------------------------------------------------------------------------
  1219. 6.3)  How come the default C compiler is brain-dead?
  1220.  
  1221. The C compiler shipped with HP-UX is intended only to rebuild the kernel
  1222. with, not for program development. To get a "real" C compiler, you must
  1223. buy the ANSI C program development bundle.
  1224. --------------------------------------------------------------------------------
  1225. 6.4)  How to I deal with "too many defines"?
  1226.  
  1227. Use the "-Wp,-Hxxxxxxx" where xxxxxxxx is the number of bytes to add to cpp's
  1228. table size.
  1229. --------------------------------------------------------------------------------
  1230. 6.5)+  How come I get "_builtin_va_start" undefined when I build with gcc?
  1231.  
  1232. The <varargs.h> and <stdarg.h> include files define va_start in terms of 
  1233. this function, which is built-in on the HP C compiler.
  1234.  
  1235. You can replace the definition of va_start as follows, depending
  1236. on whether you are using varargs or stdarg (K&R or ANSI,
  1237. respectively).
  1238.  
  1239.     #include <varargs.h>
  1240.     #ifdef __hppa
  1241.     #undef va_start
  1242.     #define va_start(a) ((a)=(char *)&va_alist+4)
  1243.     #endif
  1244.  
  1245.     #include <stdarg.h>
  1246.     #ifdef __hppa
  1247.     #undef va_start
  1248.     #define va_start(a,b) ((a)=(va_list)&(b))
  1249.     #endif
  1250.  
  1251. For <varargs.h>, this replacement should always work.
  1252.  
  1253. For <stdarg.h>, this replacement will work unless the last fixed
  1254. parameter ("b" in the call to va_start) is a structure larger
  1255. than 8 bytes.  Large structures are passed by reference, with the
  1256. callee responsible for copying the structure to a temporary area
  1257. if it will be modified.  In this case, "&b" will take the address
  1258. of that temporary area instead of the position in the argument
  1259. list, and va_next won't work.  That's why HP uses a compiler
  1260. built-in.
  1261.  
  1262. [ Thanks to Cary Coutant, HP. ]
  1263. --------------------------------------------------------------------------------
  1264. 6.6)+  How can I tell if something was built debuggable?
  1265.  
  1266. If the output of "/usr/contrib/bin/odump -spaces file.o" shows a space
  1267. named $DEBUG$, then it was compiled with -g.
  1268.  
  1269. [ Thanks to Fran Litterio, Centerline. ]
  1270. --------------------------------------------------------------------------------
  1271. Subject:  HARDWARE AND PERIPHERALS
  1272. --------------------------------------------------------------------------------
  1273. 7.1) Are alternate keyboards available for HP workstations?
  1274.  
  1275. Yes, HP has two keyboards available for their workstations and X Terminals.
  1276.  
  1277. - A1099B - Workstation style keyboard (Default on workstations.)
  1278. - A2205A - PC-101 style keyboard (Default on X Terminals.)
  1279. ---------------------------------------------------------------------------------
  1280. 7.2)  How can I play audio CDs on an HP workstation?
  1281.  
  1282. A contributed application ("xcd") exists that presents a X-window CD player
  1283. front panel.  xcd runs on HP-UX 7.0 and 8.0, on Series 300, 400 and 700, with
  1284. either SCSI or HP-IB CD-ROM drives. The SCSI drives must be HP-supplied or
  1285. Toshiba XM-3201B or XM-3301B. xcd does not yet officially work on HP-UX 9.0,
  1286. but I've tried it and it seems to work just fine. Note that xcd plays only
  1287. through the CD player's headphone jack and not through the workstation's
  1288. speaker.
  1289.  
  1290. xcd is available from the InterWorks workstation user group (see above), 
  1291. on their ftp site, CD-ROM, and via DDS tape.
  1292.   
  1293. Note that source is not available.
  1294.  
  1295. [ Thanks to Bob Niland, late of HP. ]
  1296. ---------------------------------------------------------------------------------
  1297. 7.3)  How can I enable the LAN interface on a 700?
  1298.  
  1299. This can be problem when the LAN isn't connected at boot time. To
  1300. resolve the problem, use the "reset" command in "landiag".
  1301. --------------------------------------------------------------------------------
  1302. 7.4)  How can I get an Exabyte to work on an HP?
  1303.  
  1304. People have under HP-UX 8.07 used device files with major number 54,
  1305. minor numbers 0x201202 and 0x201203 for /dev/rmt/2m and /dev/rmt/2mn, 
  1306. respectively, for low density. Other people had used 0x201242 and 0x201243.
  1307.  
  1308. Note that with HP-UX 9.01, low density means 8200 format in 8500 drives.
  1309. Major #54, minor numbers 0x201202 and 0x201203 are low density handles.
  1310. With 8200 drives the density does not matter. Software compression
  1311. control with 8505 drives will require a patch to HP-UX 9.01.
  1312.  
  1313. Caveats: some Exabyte drives will not support a "dump" blocking factor
  1314. greater than 64 from the HP.  Others are apparently limited in the commands
  1315. they will accept (e.g. TTI noted that their 8501 tape drive will not properly
  1316. interface with the HP under all conditions; however, the TTI 8510 does
  1317. interface correctly). TTI had a firmware problem which should be 
  1318. corrected in recent 8510s.
  1319. --------------------------------------------------------------------------------
  1320. 7.5)! Is there a "node ID" on 700s?
  1321.  
  1322. Yes. Most licensing systems (FlexLM and NetLS, for example), are driven from 
  1323. the LLA, available from /etc/lanscan or /usr/etc/netls/ls_targetid. There is 
  1324. also a CPU ID number that HP uses for /etc/update; it may be a transformation 
  1325. of the LLA, but this is not guaranteed to remain the case, and may be disturbed
  1326. by replacement of the LAN board. Additionally, the LLA can be reset by a 
  1327. CE using the proper secret magic program.
  1328. --------------------------------------------------------------------------------
  1329. 7.6)+  How can I get a stuck DDS tape out of the drive?
  1330.  
  1331. 1)  Power down your machine (remember shutdown!!! ;-))
  1332. 2)  Open it up (you'll prob. need Torx screwdrivers).
  1333. 3)  on the side of the drive, you should see a small rectangular piece
  1334.     of plastic.  gently pry it off... it should come off quite easily.
  1335. 4)  the aforementioned piece of plastic covers a hole, which houses a 
  1336.     small dial.  spinning this dial ejects the tape.  
  1337. 5)  replace plastic piece, close machine... and bob's your uncle.
  1338.  
  1339. p.s.  the dial has very little torque (ie. the tape comes out quite slowly,
  1340. but you can see it move.   It'll take about 2-3 minutes of spinning before 
  1341. the tape comes out.
  1342.  
  1343. [ Thanks to Edlin Seebick. ]
  1344. --------------------------------------------------------------------------------
  1345. 7.7)+  How can I use dump with a DDS tape?
  1346.  
  1347. dump was written to assume 9-track tapes, so some fudging has
  1348. to be done for DDS tapes.  The following has the info you need
  1349. along with several alternatives for dump parameters.
  1350.  
  1351. Approximate capacity of 60m DDS tape = 1.3G bytes
  1352. Approximate DDS tape density = (1.3G bytes) / (60 m) = (550K bytes/in)
  1353.  
  1354. dump assumes an inter-record gap (IRG) of 0.3 in for density = 6250,
  1355. 0.7 in otherwise.
  1356.  
  1357. dump uses a default blocking factor of 10 for density < 6250,
  1358. 32 otherwise.
  1359. -------------------------------------------------------------------------
  1360. density = 550000
  1361. blocking factor = 32 (default)
  1362. assumed IRG = 0.7 in
  1363.  
  1364. Block length = (32K bytes/block) / (550K bytes/in) + (0.7 in) = (0.76 in)
  1365.  
  1366. Effective tape length =
  1367.     (1.3G bytes) / (32K bytes/block) * (0.76 in/block) = (2511 ft)
  1368. -------------------------------------------------------------------------
  1369. density = 6250
  1370. blocking factor = 32 (default)
  1371. assumed IRG = 0.3 in
  1372.  
  1373. Block length = (32K bytes/block) / (6250 bytes/in) + (0.3 in) = (5.54 in)
  1374.  
  1375. Effective tape length =
  1376.     (1.3G bytes) / (32K bytes/block) * (5.54 in/block) = (18325 ft)
  1377. -------------------------------------------------------------------------
  1378. density = 1600
  1379. blocking factor = 10 (default)
  1380. assumed IRG = 0.7 in
  1381.  
  1382. Block length = (10K bytes/block) / (1600 bytes/in) + (0.7 in) = (7.10 in)
  1383.  
  1384. Effective tape length =
  1385.     (1.3G bytes) / (10K bytes/block) * (7.10 in/block) = (75113 ft)
  1386. -------------------------------------------------------------------------
  1387. density = 1600
  1388. blocking factor = 32
  1389. assumed IRG = 0.7 in
  1390.  
  1391. Block length = (32K bytes/block) / (1600 bytes/in) + (0.7 in) = (21.18 in)
  1392.  
  1393. Effective tape length =
  1394.     (1.3G bytes) / (32K bytes/block) * (21.18 in/block) = (70022 ft)
  1395. -------------------------------------------------------------------------
  1396. [ Thanks to Cary Coutant, HP. ]
  1397. --------------------------------------------------------------------------------
  1398. 7.8)+  What is the correct major number for DDS drives on 9.01?
  1399.  
  1400. For reasons too detailed to go into here, the major number for DDS drives
  1401. has changed to 121 (from 54) at 9.01. 
  1402. --------------------------------------------------------------------------------
  1403.  
  1404. -- 
  1405. Greg Cagle                  |  "If we were weiner
  1406. greg_cagle@mentorg.com      |   dogs, all our problems
  1407. Mentor Graphics Corporation |   would be solved!"
  1408.